//
//  YWPhotoView.h
//  maintain
//
//  Created by kyo on 16/11/16.
//  Copyright © 2016年 ewin. All rights reserved.
//

#import <UIKit/UIKit.h>

#define YWPhotoGap 5
#define YWPhotoSize (([UIScreen mainScreen].bounds.size.width)-35)/4

@protocol YWPhotoViewDelegate <NSObject>
-(void)resetPhotoViewFrame:(CGRect)rect andTotalPhotoArray:(NSArray *)photoNameArray;
@end

@interface YWPhotoView : UIView
//图片数组
@property (nonatomic, strong) NSArray *photosArray;
//是否只是显示图片(NO:没有添加图片按钮,YES:有添加图片按钮,默认是YES)
@property (nonatomic, assign) BOOL canAddPhoto;
//是否可以从相册选取图片(NO:只能拍照,YES:既可以拍照也可以从相册选取，默认是NO)
@property (nonatomic, assign) BOOL pickFromPhotoLibrary;
//是否没有图片间距，默认不需要设置,是上面宏定义的YWPhotoGap
@property (nonatomic, assign) BOOL noPhotoGap;
//图片大小(默认不需要设置，仅用于维保记录详情)
@property (nonatomic, assign) NSInteger photoWH;
//代理
@property (nonatomic ,weak) id<YWPhotoViewDelegate>delegate;
@end
